/**
 * =====================================================================================
 *       @file  ngx_process.h
 *      @brief  
 *
 *  Detailed description starts here.
 *
 *   @internal
 *     Created  2012年05月08日 21时02分49秒 
 *    Revision  1.0.0.0
 *    Compiler  gcc/g++
 *
 *     @author  luis
 * =====================================================================================
 */

#ifndef _NGX_PROCESS_H_INCLUDED_
#define _NGX_PROCESS_H_INCLUDED_

#include <unistd.h>
#include <sys/types.h>
#include "ngx_cycle.h"

#define NGX_INVALID_PID -1

#define ngx_getpid      getpid

typedef pid_t ngx_pid_t;

typedef void (*ngx_spawn_proc_pt)(ngx_cycle_t *cycle, void *data);

pid_t ngx_spawn_process(ngx_spawn_proc_pt proc, ngx_cycle_t *cycle, void *data);

#endif

